Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor sample track playback/export glitches #4666

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

PhysSong
Copy link
Member

This PR makes LMMS handle loop points correctly and export samples without glitches. Switches some signal-slot connections to Qt::DirectConnection and change Song::processNextBuffer to emit the updateSampleTracks signal correctly. I believe queued connections caused #3133 (comment), so I removed the old workaround.
Also tweaks some Mixer-related code to avoid deadlocks on export. Due to how Mixer::requestChangeInModel works, Mixer's processing state should be set properly based on whether Mixer::renderNextBuffer can be called or not. So I touched Mixer and ProjectRenderer a bit.
Fixes #4362.

Switches some signal-slot connections to Qt::DirectConnection.
Now LMMS can handle loop points correctly and export samples without glitches.
Also tweaks some Mixer-related code to avoid related deadlocks on export.
@PhysSong PhysSong merged commit d8fb07f into LMMS:stable-1.2 Oct 29, 2018
@PhysSong PhysSong deleted the samplefixes branch October 29, 2018 07:17
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Switches some signal-slot connections to Qt::DirectConnection.
Now LMMS can handle loop points correctly and export samples without glitches.
Also tweaks some Mixer-related code to avoid related deadlocks on export.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant